package member.base.model;

import m.common.model.FieldMeta;
import m.common.model.LinkTableMeta;
import m.common.model.TableMeta;
import m.common.model.type.FieldType;

@TableMeta(name="b_member_level",description="会员级别表")
public class MemberLevel extends StatusModel{
    @LinkTableMeta(name="business_oid",table= BusinessInfo.class,description="所属商家")
    private BusinessInfo business;

    @FieldMeta(name = "color",type = FieldType.STRING,length=20,description = "颜色")
    private String color;
    @FieldMeta(name="name",type= FieldType.STRING,length=20,description="会员名称")
    private String name;
    @FieldMeta(name = "discount",type = FieldType.INT,description = "优惠比例%")
    private Integer discount;
    @FieldMeta(name="remark",type= FieldType.STRING,length=500,description="备注")
    private String remark;

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getDiscount() {
        return discount;
    }

    public void setDiscount(Integer discount) {
        this.discount = discount;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public BusinessInfo getBusiness() {
        return business;
    }

    public void setBusiness(BusinessInfo business) {
        this.business = business;
    }
}
